package com.jingyanku.pojo;

import java.util.ArrayList;
import java.util.List;

import javax.persistence.OneToMany;

import com.base.pojo.BaseBean;

/**
 * Category entity. @author MyEclipse Persistence Tools
 */

public class Category extends BaseBean {

	// Fields

	private Integer id;
	private String name;
	private List<Board> boards = new ArrayList<Board>();
	// Constructors

	/** default constructor */
	public Category() {
	}

	/** minimal constructor */

	/** full constructor */
	public Category(
			String name) {
		this.name = name;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}


	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public List<Board> getBoards() {
		return boards;
	}

	public void setBoards(List<Board> boards) {
		this.boards = boards;
	}
	

}